<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

?>
<html>
    <head>
        <title>
            SiDatRa - Admin
        </title>
        <link rel="stylesheet" href="<?= base_url() ?>style/form.css"/>
    </head>
    <body>
        <div id="container">
             <h1>Mode Admin</h1>
            <a href="<?= base_url() ?><?= index_page() ?>/admin/register">Registrasi Pengguna</a>
            <br/>
            <a href="<?= base_url() ?><?= index_page() ?>/admin/change_role">Ubah Role Pengguna</a>
            <br/>
            <br/>
            <a href="<?= base_url() ?><?= index_page() ?>">Login</a>
            
            <div id="content" align="center">
                <div class="FormField" id="FormRegistrasi" align="center">
                    <?php echo form_open('admin/change_role/change') ?>
                    <table>
                        <div class="FormText">
                            <tr>
                                <td><?php echo form_label('Nama : ') ?></td>
                                <td><?php echo form_dropdown($nama['name'],$optionNama) ?></td>
                            </tr>
                            <tr>
                                <td><?php echo form_label('Ganti peran menjadi : ') ?></td>
                                <td><?php echo form_dropdown($selectr['name'],$optionrole) ?></td>
                            </tr>
                            <tr>

                                <td><?php echo form_submit($submit) ?></td>
                            </tr>
                        </div>
                    </table>
                    <?php echo form_close() ?>
                </div>
            </div>
        </div>
    </body>
</html>
